import request from '@/utils/request'
// 图片删除
export const delpictureApi = (params) =>
  request.get(`/oss/deleteFile?filename=${params.filename}`)
// 添加农事
export const addArgiMissionApi = (params) =>
  request.post('/land_info/addArgr', params)
// 根据landId查农事
export const getAgriListApi = (params) =>
  request.get(
    `/land_info/getAgrByLandId?baseId=${params.baseId}&landId=${params.landId}`
  )
// 根据landId、农事类型、查农事
export const getAgriListByTimeApi = (params) =>
  request.get(
    `/land_info/getAgrByLandId?baseId=${params.baseId}&landId=${params.landId}&startTime=${params.startTime}&endTime=${params.endTime}&NS=${params.NS}`
  )
// 添加时查询用户信息
export const getUserListApi = (baseId) =>
  request.get(`/user_info/list?baseId=${baseId}`)
// 播种
export const AddSeedingApi = (params) => request.post('/seeding/add', params)
// 农资库存
export const getFarmsStockInventoryApi = (params) =>
  request.get(
    `/agricultural_inventory/page?current=${params.current}&pageSize=${params.pageSize}`
  )
// 根据landId查对应土壤list
export const getLandloilReportApi = (params) =>
  request.get(
    `/sampling_report/list?landId=${params.landId}&baseId=${params.baseId}`
  )
// 结束种植
export const endPlantingApi = (params) =>
  request.get(
    `/land_info/endPlanting?landId=${params.landId}&agriArcId=${params.agriArcId}`
  )
